/**
 * Created by MissJin on 2017/1/10.
 * 名  称:TBcRole
 * 类  型: class
 * 描  述: 公共角色模块
 * 路  径:com.hongdee.rbac.role.entity
 */
package com.hongdee.rbac.role.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by My on 2017/1/10.
 */
@Entity
@Table(name = "T_BC_ROLE")
public class TBcRole extends BaseEntity {
    /**
     * 角色名称
     */
    @Column(length = 45, name = "r_name", nullable = false, columnDefinition = "VARCHAR(45) COMMENT '角色名称'")
    private String rName;
    /**
     * 应用部门
     */
    @Column(length = 32, name = "o_id", columnDefinition = "VARCHAR(32) COMMENT '应用部门'")
    private String oId;
    /**
     * 是否包含下级
     */
    @Column(length = 1, name = "has_child", columnDefinition = "VARCHAR(1) COMMENT '是否包含下级'")
    private String hasChild;
    /**
     * 显示顺序
     */
    @Column(length = 10, name = "r_order", columnDefinition = "VARCHAR(10) COMMENT '显示顺序'")
    private String rOrder;
    /**
     * 状态：0无效1有效
     */
    @Column(length = 1, name = "r_status", columnDefinition = "VARCHAR(1) COMMENT '状态'")
    private String rStatus;
    /**
     * 备注
     */
    @Column(length = 256, name = "r_desc", columnDefinition = "VARCHAR(256) COMMENT '备注'")
    private String rDesc;

    @Column(length = 32, name = "is_manger", columnDefinition = "VARCHAR(32) COMMENT '是否管理员'")
    private String isManger;

    public String getIsManger() {
        return isManger;
    }

    public void setIsManger(String isManger) {
        this.isManger = isManger;
    }

    /**
     * @return rName
     */
    public String getrName() {
        return rName;
    }

    /**
     * @param rName String
     */
    public void setrName(String rName) {
        this.rName = rName;
    }

    /**
     * @return oId
     */
    public String getoId() {
        return oId;
    }

    /**
     * @param oId String
     */
    public void setoId(String oId) {
        this.oId = oId;
    }

    /**
     * @return hasChild
     */
    public String getHasChild() {
        return hasChild;
    }

    /**
     * @param hasChild String
     */
    public void setHasChild(String hasChild) {
        this.hasChild = hasChild;
    }

    /**
     * @return rOrder
     */
    public String getrOrder() {
        return rOrder;
    }

    /**
     * @param rOrder String
     */
    public void setrOrder(String rOrder) {
        this.rOrder = rOrder;
    }

    /**
     * @return rStatus
     */
    public String getrStatus() {
        return rStatus;
    }

    /**
     * @param rStatus String
     */
    public void setrStatus(String rStatus) {
        this.rStatus = rStatus;
    }

    /**
     * @return rDesc
     */
    public String getrDesc() {
        return rDesc;
    }

    /**
     * @param rDesc String
     */
    public void setrDesc(String rDesc) {
        this.rDesc = rDesc;
    }
}
